import request from '@/utils/request'

// 查询会员错题本列表
export function listMemberTrainProblem(query) {
  return request({
    url: '/member/memberTrainProblem/list',
    method: 'get',
    params: query
  })
}

// 查询会员错题本详细
export function getMemberTrainProblem(id) {
  return request({
    url: '/member/memberTrainProblem/' + id,
    method: 'get'
  })
}

// 新增会员错题本
export function addMemberTrainProblem(data) {
  return request({
    url: '/member/memberTrainProblem',
    method: 'post',
    data: data
  })
}

// 修改会员错题本
export function updateMemberTrainProblem(data) {
  return request({
    url: '/member/memberTrainProblem',
    method: 'put',
    data: data
  })
}

// 删除会员错题本
export function delMemberTrainProblem(id) {
  return request({
    url: '/member/memberTrainProblem/' + id,
    method: 'delete'
  })
}
